img_path = r'C:\Users\bingwa\Desktop\car\cut\cut_1112101839-027.jpg'

print(img_path)
img_path_pre = img_path.split('.')[0]
img_suffix = '.' + img_path.split('.')[1]
print(img_suffix)
img_name = img_path_pre.split('\\')[-1]
print(img_name)
file_path = img_path_pre.split(img_name)[0]
print(file_path)
print(img_path)